package com.lovegu.jvm;

/**
 * @author 老顾
 * @title: SuperClass
 * @projectName java-restudy
 * @email: 1437594522@qq.com
 * @date 2022/10/9 21:04
 */
public class SuperClass {
    public static void main(String[] args) {
//        Parent[] parents = new Parent[2];
//        System.out.println(Child.value);
        System.out.println(Child.VALUE2);
    }
}
class Parent {
    static {
        System.out.println("Parent init!");
    }
    public static int value = 123;
    public static final int VALUE2 = 123;
}
class Child extends Parent {
    static {
        System.out.println("Child init!");
    }
}